<template>
	<view class="container">
		<view class="cell">
			<u-cell-group>
				<u-cell @click="personalCenter" title="个人中心" :isLink="true">
				</u-cell>
				<u-cell @click="account" title="账户与安全" :isLink="true">
				</u-cell>
				<u-cell title="主题" :isLink="true"></u-cell>
				<u-cell title="版本号" :value="version"></u-cell>
			</u-cell-group>
		</view>
	</view>
</template>

<script>
	import {
		http
	} from '@/config/common.js'
	export default {
		data() {
			return {
				version: ''
			}
		},
		onShow() {
			// 获取本地应用资源版本号
			plus.runtime.getProperty(plus.runtime.appid, (info) => {
				this.version = info.version;
			})
		},
		methods: {
			personalCenter() {
				uni.navigateTo({
					url: '/pages/personal-center/personal-center'
				})
			},
			account() {
				uni.navigateTo({
					url: '/pages/account/account'
				})
			}
		}
	}
</script>

<style>

</style>